<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <title>置换IPFS矿机</title>
    <link rel="stylesheet" href="../../css/reset.css" />
    <style>
        body {
            width: 100%;
            background-color: #F8F8F8;
            font-family: Helvetica;
            color: #333333;
            font-size: 0.28rem;
            /* font-family: "pingfangSC", serif; */
            font-family: PingFang SC;
        }

        .statusPage {
            width: 100%;
            height: auto;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-top: 1.9rem;
        }

        .statusImg {
            width: 1.84rem;
        }

        .statusText {
            font-size: 0.32rem;
            font-weight: 500;
            color: rgba(255, 187, 34, 1);
            margin: 0.35rem 0 0.54rem 0;
        }

        .statusButtons {
            width: auto;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.24rem;
            color: rgba(38, 38, 38, 1);
        }

        .statusButtons b {
            width: 2.8rem;
            height: 0.7rem;
            border-radius: 0.06rem;
            border: 1px solid #D2D2D2;
            text-align: center;
            line-height: 0.7rem;
            margin-right: 0.3rem;
        }

        .statusButtons b:last-of-type {
            border: 1px solid #FFD203;
            background-color: #FFD203;
            margin-right: 0;
        }
    </style>
</head>

<body>
    <div class="statusPage">
        <img src="../../image/renzhengyesx.png" alt="" class="statusImg">
        <p class="statusText">
            算力置换成功
        </p>
        <p class="statusButtons">
            <b class="changeIpfsRecord">
                查看记录
            </b>
            <b class="goSeeIpfs">
                查看订单
            </b>
        </p>
    </div>
</body>
<script src="../../script/autosize.js"></script>
<script src="../../script/fastclick.js"></script>
<script src="../../script/jquery_three_two_one.js"></script>
<script src="../../script/dotmin.js"></script>
<script src="../../script/app.js"></script>
<script>
    apiready = function () {
        var app = new APP();
        var account = app.getAccount();
        var statusText = api.pageParam.statusText;
        var failText = api.pageParam.failMessage;
        if (statusText != "succeful") {
            $(".changeIpfsRecord").hide();
            $(".statusImg").attr("src", "../../image/renzhengnox.png");
            $(".statusText").text(failText).css("color", "#595959");
            $(".goSeeIpfs").text("再次置换");
        }
        //查看置换记录
        $(".changeIpfsRecord").click(function () {
            var goCerfition = {
                name: "replace_record",
                subpage: "rent/replace_record",
                title: "置换记录",
                param: {
                    pageName: "replace_record"
                }
            };
            app.setNavBarAttr(goCerfition);
        })
        $(".goSeeIpfs").click(function () {
            if (statusText == "succeful") {
                app.trigger("goSeeIpfs");
            }
            setTimeout(function (params) {
                app.closeW("changestatus");
            }, 1000);
        })
        app.headerMap();
    }

</script>
<script type="text/html" id="couponListLi">
    {{~it:it:index}}
    
    {{~}}
</script>

</html>